import Vue from 'vue'
import Vuex from 'vuex'
import { Notify } from 'vant'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    mivaShow: true
  },
  mutations: {
    TOOGELMIVASHOW: (state) => {
      state.mivaShow = !state.mivaShow
      Notify({ message: `效果已${state.mivaShow ? '开启' : '关闭'}`, color: '#2e404e', background: '#cfa23e' })
    }
  },
  actions: {

  }
})
